package ru.alperez.model;

public class Result {
	public enum ErrorCode {
		ERROR_NO_ERROR,
		ERROR_POINT_EXISTS,
		ERROR_POINT_INSERT,
		ERROR_BAD_ARGUMENT,
		ERROR_CONFLICT,
	};
	private boolean result;
	protected ErrorCode errorCode;
	protected String errorString;
	
	public Result(boolean result, ErrorCode errorCode, String errorString) {
		this.result = result;
		this.errorCode = errorCode;
		this.errorString = errorString;
	}
	
	
	public boolean getResult() {
		return result;
	}
	public ErrorCode getErrorCode() {
		return errorCode;
	}
	public String getErrorString() {
		return errorString;
	}
}
